home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / getpos.doc < prev    next >
Text File  |  1986-09-23  |  818b  |  39 lines

  1.  
  2.  
  3.  
  4.         NAME
  5.                 getpos -- get current cursor position
  6.  
  7.         SYNOPSIS
  8.                 position = getpos(page);
  9.                 unsigned int position;      returned position
  10.                 int page;          video page to check
  11.  
  12.  
  13.         DESCRIPTION
  14.         Returns the row and column of the cursor on the specified
  15.         video page.  Row is in upper 8 bits of returned integer
  16.         and column in lower 8 bits.  Values are in binary.
  17.  
  18.  
  19.  
  20.  
  21.         EXAMPLE
  22.  
  23.                unsigned int position;
  24.                short row, column;
  25.                position = getpos(0);    /* on video page 0 */
  26.                row = (position >> 8) & 0xff;
  27.                column = position & 0xff;
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.         This function is found in SMDLx.LIB for the Datalight Compiler
  39.